package com.df.my_net_game.logic.equi.handlers;

import com.df.my_net_game.net.base.EZGameCtx;
import com.df.my_net_game.proto.equip.C2G_EquipUpLevel;
import com.df.my_net_game.common.service.ILgservice;
import com.df.my_net_game.proto.equip.G2C_EquipUpLevel;
import org.springframework.stereotype.Component;

@Component
public class Equip_UpLevelService implements ILgservice<C2G_EquipUpLevel, G2C_EquipUpLevel> {


    @Override
    public G2C_EquipUpLevel handle(C2G_EquipUpLevel r) {
        EZGameCtx context = EZGameCtx.getContext();
//        Object playerId = context.get("playerId");
//        if(playerId==null){//还未登录
//            return null;
//        }
        G2C_EquipUpLevel resp = new G2C_EquipUpLevel();
        resp.setLevel(20);
        return resp;
    }
}
